package com.xjzd.pattern.strategy.pay;

import java.math.BigDecimal;

// @Service Spring环境下注册为bean
public class WeChatPayService implements PaymentService {

    @Override
    public void pay(BigDecimal amount) {
        System.out.println("使用微信支付" + amount);
    }

    @Override
    public String getSupportedChannel() {
        return "wechat";
    }
}
